﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace SSOF.Client.Silverlight.TempObjects
{
    public class DemoData
    {
        public static DemoContext CreateData()
        {
            DemoContext context = new DemoContext();
            Random r = new Random();

            List<HomeQuestion> homeQuestions = new List<HomeQuestion>();
            HomeQuestion q = new HomeQuestion { NumberOfVotes = r.Next(0, 100), NumberOfViews = r.Next(0, 1000), NumberOfAnswers = r.Next(0, 20), QuestionTitle = "How to index date field in lucene", QuestionContent = "How to index date field in luceneHow to declare a generic\r\n funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?" };
            homeQuestions.Add(q);
            q = new HomeQuestion { NumberOfVotes = r.Next(0, 100), NumberOfViews = r.Next(0, 1000), NumberOfAnswers = r.Next(0, 20), QuestionTitle = "How to declare a generic funtion returning a type satisfying multiple constraints in F#?", QuestionContent = "How to index date field in lucene" };
            homeQuestions.Add(q);
            q = new HomeQuestion { NumberOfVotes = r.Next(0, 100), NumberOfViews = r.Next(0, 1000), NumberOfAnswers = r.Next(0, 20), QuestionTitle = "When to use assert() and when to use try catch?", QuestionContent = "How to index date field in luceneHow to declare a generic\r\n funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?" };
            homeQuestions.Add(q);
            q = new HomeQuestion { NumberOfVotes = r.Next(0, 100), NumberOfViews = r.Next(0, 1000), NumberOfAnswers = r.Next(0, 20), QuestionTitle = "change 3 navigation bar background with different image", QuestionContent = "How to index date field in lucene" };
            homeQuestions.Add(q);
            q = new HomeQuestion { NumberOfVotes = r.Next(0, 100), NumberOfViews = r.Next(0, 1000), NumberOfAnswers = r.Next(0, 20), QuestionTitle = "Which WPF third party Gauge controls to choose?", QuestionContent = "How to index date field in luceneHow to declare a generic\r\n funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?" };
            homeQuestions.Add(q);
            q = new HomeQuestion { NumberOfVotes = r.Next(0, 100), NumberOfViews = r.Next(0, 1000), NumberOfAnswers = r.Next(0, 20), QuestionTitle = "WPF - problem with triggers", QuestionContent = "How to index date field in luceneHow to declare a generic\r\n funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?" };
            homeQuestions.Add(q);
            q = new HomeQuestion { NumberOfVotes = r.Next(0, 100), NumberOfViews = r.Next(0, 1000), NumberOfAnswers = r.Next(0, 20), QuestionTitle = "WPF how to make an expandable button toolbar", QuestionContent = "How to index date field in luceneHow to declare a generic\r\n funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?" };
            homeQuestions.Add(q);
            q = new HomeQuestion { NumberOfVotes = r.Next(0, 100), NumberOfViews = r.Next(0, 1000), NumberOfAnswers = r.Next(0, 20), QuestionTitle = "Scala Actor in script mode", QuestionContent = "How to index date field in luceneHow to declare a generic\r\n funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?" };
            homeQuestions.Add(q);
            q = new HomeQuestion { NumberOfVotes = r.Next(0, 100), NumberOfViews = r.Next(0, 1000), NumberOfAnswers = r.Next(0, 20), QuestionTitle = "Weird outputs from SendMessage on 64-bit Windows", QuestionContent = "How to index date field in luceneHow to declare a generic\r\n funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?\r\nHow to declare a generic funtion returning a type satisfying multiple constraints in F#?" };
            homeQuestions.Add(q);
            q = new HomeQuestion { NumberOfVotes = r.Next(0, 100), NumberOfViews = r.Next(0, 1000), NumberOfAnswers = r.Next(0, 20), QuestionTitle = "Ant gc task for mxmlc?" };
            homeQuestions.Add(q);
            q = new HomeQuestion { NumberOfVotes = r.Next(0, 100), NumberOfViews = r.Next(0, 1000), NumberOfAnswers = r.Next(0, 20), QuestionTitle = "Power spectral density of a signal with gaps?" };
            homeQuestions.Add(q);
            context.HomeQuestions = homeQuestions;

            return context;
        }
    }
}
